//
//  MCEmptyDataView.swift
//  StoreManage
//
//  Created by MC on 2018/9/3.
//  Copyright © 2018年 MC. All rights reserved.
//

import UIKit

/**
 * 使用说明
 * 列表页面当有headerView的时候，如果没有数据，就加在头部视图上
 */

class MCEmptyDataView: UIView {

    override init(frame: CGRect) {
        super.init(frame: frame)
        
        
        backgroundColor = UIColor.white
        self.addSubview(emptyImageView)
        emptyImageView.snp.remakeConstraints { (make) ->Void in
            make.center.equalTo(self)
        }
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    lazy var emptyImageView: UIImageView = {
        let iv = UIImageView()
        iv.image = #imageLiteral(resourceName: "Reuse_emptyData")
        return iv
    }()
}
